<template>
	<view class="page-navbar">
		<view class="nav">
			<view class="blackWrap" @tap='goBack'>
				<image src="/static/new.png" mode="" class="blackIcon"></image>
				<view class="text">{{leftText}}</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				barHeight:''
			}
		},
		computed: {
			
		},
		props:['leftText','goUrl','cik'],
		methods: {
			goIndex() {
				uni.navigateTo({
					url:'/pages/index/index'
				})
			},
			goBack() {
				// debugger;
				if(this.cik == 'custerm') {
					this.$emit('custremCik')
				} else {
					uni.navigateBack();
				}
			}
		}
	}
</script>

<style lang="scss">
	.blackIcon {
		width: 16rpx;
		height: 28rpx;
		margin-right: 20rpx;
	}
	.nav {
		height: 140rpx;
		display: flex;
	    align-items: center;
	}
	.text {
		font-size: 32rpx;
		font-weight: bold;
	}
	.page-navbar {
		position: fixed;
		top:0;
		right: 0;
		left:0;
		background-color: #f7f7f7;
	}
	.blackWrap{
		height: 100%;
		padding-left: 30rpx;
		@include center();
	}
</style>